package com.wlc.base.design.strategymode.v1;

/**
 * @author 王立朝
 * @date 2022/3/16
 * @description: 维护Strategy对象的引用
 */
public class StrategyContext {

    Strategy strategy;

    public StrategyContext(Strategy strategy) {
        this.strategy = strategy;
    }

    public void contextInterface(){
        strategy.algorithmInterface();
    };
}
